package com.emos.wx.myemos.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/*
封装类，将token封装成AuthenticationToken类型，才能传递给shiro框架
 */
public class OAuth2Token implements AuthenticationToken {
    private String token;

    public OAuth2Token(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
